import Vue from 'vue'
import App from './App'
import {formatDate} from 'common/format-data.js'
//引入vuex
import store from 'pages/store/store.js'
//把vuex定义成全局组件
Vue.prototype.$store = store
// 重加载用户
import {reoladUser} from 'pages/utils/reloadUser.js'
Vue.prototype.$reoladUser = reoladUser

Vue.config.productionTip = false

App.mpType = 'app'

Vue.filter('dateFormat',(value, fmt = 'yyyy-MM-dd ') =>{
	if(!!value){
		return formatDate(new Date(value), fmt)
	}
});

const app = new Vue({
    ...App,
	store
})
app.$mount()
